#ifndef AFX_CSTATUSBAR_H
#define AFX_CSTATUSBAR_H

#include <windows.h>
#include <commctrl.h>

class CStatusbar {
  private:
    HWND m_hStatusbar;
  public:
    CStatusbar();
    void SetHandle(HWND hStatusbar);
    HWND GetHandle();
    //STYLES: SBARS_SIZEGRIP, SBARS_TOOLTIPS
    HWND Create(DWORD dwStyle, LPCTSTR lpszText, HWND hParent, UINT nID);
    BOOL Destroy();
    INT Simple(BOOL bSimple);
    INT IsSimple();
    INT GetClientRect(LPRECT rect);
    INT GetBorders(LPINT aBorders);
    INT SetIcon(INT iPart, HICON hIcon);
    HICON GetIcon(INT iPart);
    INT SetParts(INT nParts, LPINT aWidths);
    INT GetParts(INT nParts, LPINT aRightCoord);
    INT GetRect(INT iPart, LPRECT lprc);
    //SBT_NOBORDERS, SBT_OWNERDRAW, SBT_POPOUT, SBT_RTLREADING, SBT_NOTABPARSING
    INT SetText(INT iPart, INT uType, LPSTR szText);
    INT GetText(INT iPart, LPSTR szText);
    INT GetTextLength(INT iPart);
    INT SetTipText(INT iPart, LPCTSTR lpszTooltip);
    INT GetTipText(INT iPart, INT nSize, LPCTSTR lpszTooltip);
    INT SetUnicodeFormat(BOOL bUnicode);
    INT GetUnicodeFormat();
    //CLR_DEFAULT
    INT SetBkColor(COLORREF clrBk);
    INT SetMinHeight(INT minHeight);
    LRESULT OnSize();
};

#endif // AFX_CSTATUSBAR_H
